﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReasonD.aspx.cs" Inherits="CellAlarm_ReasonD" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>断站原因分析</title>
    <script type="text/javascript" src="../Scripts/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.9.2.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.bgiframe.js"></script> 
    <link rel="Stylesheet" href="../Content/redmond/jquery-ui-1.9.2.custom.min.css" />
    <link rel="stylesheet" href="../Content/SysManage.css" type="text/css" />  
   <script type="text/javascript" src="../Scripts/CellAlarm/ReasonD.js"></script> 
</head>
<body>
    <form id="form1" runat="server">
    <div class="ContentDiv">
    <p><label for="Dep_A" class="lTitle">
                    区域：</label>
                <asp:DropDownList ID="Dep_A" runat="server" Enabled="false" CssClass="ui-widget-content" Width="142">
                </asp:DropDownList>
                <label for="Cell_CHName_A" class="lTitle" style="margin-left:85px">
                    基站:</label>
                <asp:TextBox ID="Cell_CHName_A" runat="server" MaxLength="50" CssClass="text ui-widget-content"></asp:TextBox>
                <label style="font-size:small; color:Red">*模糊查找</label>                 
            </p>
            <p><label for="Main_Reason" class="lTitle">断站类型：</label>
            <asp:DropDownList ID="Main_Reason" runat="server" CssClass="ui-widget-content" Width="142">
                <asp:ListItem Selected="True" Value="">——请选择——</asp:ListItem>
               <asp:ListItem>市电故障</asp:ListItem> 
               <asp:ListItem>电源柜原因</asp:ListItem> 
               <asp:ListItem>传输设备原因</asp:ListItem> 
               <asp:ListItem>无线设备故障</asp:ListItem> 
               <asp:ListItem>光缆中断</asp:ListItem> 
               <asp:ListItem>其他</asp:ListItem> 
            </asp:DropDownList>    
            <label for="CELL_NET" class="lTitle" style="margin-left:85px">2G/3G：</label>
            <asp:DropDownList ID="CELL_NET" runat="server" Width="153" CssClass="ui-widget-content">
                    <asp:ListItem Selected="True" Text="——全部——" Value="0"></asp:ListItem>
                    <asp:ListItem Text="2G" Value="2G"></asp:ListItem>
                    <asp:ListItem Text="3G" Value="3G"></asp:ListItem>
                </asp:DropDownList>
            <asp:Button ID="Query_Reason" runat="server" Text="点击查询" CssClass="BtnLeft" OnClick="QueryReason_Click"/>        
            <asp:Button ID="Excel" runat="server" Text="导出EXCEL" OnClick="Excel_Click" /> 
            </p>
            <asp:GridView ID="ReasonList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" Font-Size="Larger" Font-Names="微软雅黑" OnRowDataBound="ReasonList_RowDataBound">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:TemplateField HeaderText="序号">  
                     <HeaderTemplate>  
                       <input type="checkbox" name="BoxIdAll" id="BoxIdAll" onclick="onclicksel();" />  
                     </HeaderTemplate>  
                     <ItemTemplate>  
                       <input id="BoxId" name="BoxId" value='<%#(Convert.ToString(Eval("RID")))%>' type="checkbox" />  
                     </ItemTemplate>  
                     <ItemStyle Height="25px" HorizontalAlign="Center" />  
                     <HeaderStyle Width="5%" Height="28px" HorizontalAlign="Center" />  
                   </asp:TemplateField>                    
                    <asp:BoundField DataField="cell_chname" HeaderText="基站名称"
                        ReadOnly="True"></asp:BoundField>
                    <asp:BoundField DataField="CELL_NET" HeaderText="网络类别"/>
                    <asp:BoundField DataField="CELL_CLASS" HeaderText="基站等级"/>
                    <asp:BoundField DataField="START_TIME" HeaderText="断站时间" />         
                    <asp:BoundField DataField="RECOVER_TIME" HeaderText="恢复时间"/>                               
                    <asp:BoundField DataField="MAIN_REASON" HeaderText="断站类型"/>
                    <asp:BoundField DataField="SECOND_REASON" HeaderText="断站原因" />                    
                    <asp:BoundField DataField="REPORT_DATE" HeaderText="上报时间" DataFormatString="{0:yyyy-MM-dd}"/>             
                    <asp:BoundField DataField="IsTele" HeaderText="电信原因" />
                    <asp:BoundField DataField="Remark" HeaderText="备注" />
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="ReasonPager" runat="server" OnPageChanged="ReasonPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            <p class="ActionP">
                <asp:HiddenField ID="HidRID" runat="server" />
                 <asp:HiddenField ID="HidOverReason" runat="server" />
                <asp:Button ID="Approval" runat="server" Text="审核通过" OnClick="Approval_Click"
                 OnClientClick="return batchAudit(this.id)" />
            <asp:Button ID="Overrule" runat="server" Text="驳回" OnClick="Overrule_Click" OnClientClick="return batchAudit(this.id)" /></p>        
    </div>
    </form>
</body>
</html>
